#include <stdio.h>
#include <time.h>

/**
 * 题目：时间函数举例2
*/
int main(int argc, char const *argv[])
{
    time_t start, end;
    int i;
    start = time(NULL);
    for(i=0; i<300000; i++)
    {
        printf("\n");
    }
    end = time(NULL);

    printf("时间间隔为：%6.3f\n", difftime(end, start));

    return 0;
}